package com.javasm.mb_store_api_final.adminLogin.login.controller;

import com.javasm.common.R;
import com.javasm.mb_store_api_final.config.adminLogin.login.service.LoginService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author: xmm
 * <p>
 * &#064;@Description:
 * <p>
 * &#064;@Date 2024/7/26 下午4:43
 */

public class LoginController {

    @Resource
    LoginService loginService;

    @GetMapping("/{phone}/code")
    public R sendCode(@PathVariable String phone) {
        loginService.sendCode(phone);
        return R.ok();
    }

    @PostMapping("/nice")
    public R nice() {
        return R.ok();
    }

}
